package org.cos.generation.util.predict;

/**
 * The set which present as X-fix relation.
 * Such as PREFIX or SUFFIX.
 * @author ZXD
 *
 */

public class PrefixPredictSet implements PredictSet {
	
	/** The prefix entity. */
	private Object prefix;
	
	/**
	 * Constructor with nothing, which construct a all possible set.
	 */
	public PrefixPredictSet() {
	}
	
	/**
	 * Constructor with relation and fix.
	 * @param relation
	 * @param fix
	 */
	public PrefixPredictSet(Object prefix) {
		this.prefix = prefix;
	}

	/**
	 * Get the fix.
	 * @return
	 */
	public Object getPrefix() {
		return prefix;
	}

	public boolean isAll() {
		if (prefix != null) return false;
		else return true;
	}
	
	public String toSerialize() {
		return toString() + "\n";
	}

	public SetType getType() {
		return SetType.PREFIX;
	}

	public PredictSet getSet() {
		return this;
	}

	public boolean contains(Object o) {
		// TODO Auto-generated method stub
		return false;
	}
	

}
